home *** CD-ROM | disk | FTP | other *** search
- Path: EU.net!sun4nl!xs4all!usenet
- From: muaddib@xs4all.nl (Thomas van Gulick)
- Newsgroups: comp.lang.c
- Subject: Re: MY SORT DOESN'T QUICK!
- Date: 27 Mar 1996 17:12:58 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <1209.6660T1091T1758@xs4all.nl>
- References: <4j2drs$q3r@dfw-ixnews3.ix.netcom.com> <199603271345.NAA21366@gis1>
- NNTP-Posting-Host: undiscovered.xs4all.nl
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
-
- >I would gently suggest that you are likely to get a lot more help with
- >your programming problems if the associated C source is commented properly.
- >To go a bit further, I would recommend that you document ALL of your code
- >AS YOU WRITE IT (hardly anyone goes back and comments code properly after it
- >is written). It's the professional thing to do.
-
- Do you REALLY think that is valuable for something so small?
- What I normally do is create an 'autodoc' comment for it, which is used
- on my system to comment all system routines. This I like a lot more, but
- this is just a personal opinion.
-
- An autodoc entry looks like this:
-
- /****** xconfig.library/CB_CloneConfigList *********************************
- *
- * NAME
- * <name>
- *
- * SYNOPSIS
- * <prototype and register specification>
- *
- * FUNCTION
- * <what it does>
- *
- * INPUTS
- * <arguments>
- *
- * RESULT
- * <result after calling>
- *
- * EXAMPLE
- * <example code>
- *
- * NOTES
- * <warning messages>
- *
- * BUGS
- * <known bugs>
- *
- * SEE ALSO
- * <references>
- *
- ****************************************************************************/
-
- Thomas
- --
- http://www.xs4all.nl/~muaddib/mf/ (working on a METW card index!)
-
-